import request from '../request'

//查询处方详情
 export const getUserRecipeDetail = params => request.globalRequest(`aos/userRecipe/userRecipeDetail/${params.params.id}`, 'GET', params)

 //患者处方列表
 export const queryUserRecipePage = params => request.globalRequest(`aos/userRecipe/userRecipePage`, 'GET', params)

 //医生发送处方给患者
 export const addUserRecipe = params => request.globalRequest(`aos/userRecipe/addUserRecipe`, 'POST', params)

 //医生历史处方
 export const historyRecipePage = params => request.globalRequest(`aos/userRecipe/historyRecipePage`, 'GET', params)

 //删除历史处方
 export const removeHistoryRecipe = params => request.globalRequest(`aos/userRecipe/removeHistoryRecipe`, 'GET', params)

 //药师待审核处方
 export const drugRecipePage = params => request.globalRequest(`aos/userRecipe/drugRecipePage`, 'GET', params)
 
 //药师历史处方
 export const checkedRecipePage = params => request.globalRequest(`aos/userRecipe/checkedRecipePage`, 'GET', params)
 
 //药师审核处方
 export const auditRecipe = params => request.globalRequest(`aos/userRecipe/auditRecipe/${params.params.id}/${params.params.status}`, 'GET', params)